<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

function goToHome() {
  router.replace('/')
}
</script>

<template>
  <n-flex h="full" justify="center" align="center">
    <n-result description="生活总归带点荒谬" status="404" title="404 资源不存在">
      <template #footer>
        <n-button secondary @click="goToHome">
          返回首页
        </n-button>
      </template>
    </n-result>
  </n-flex>
</template>
